FROM java:8
VOLUME /tmp
ADD springboot-docker.jar springboot-docker.jar
RUN sh -c 'touch /springboot-docker.jar'
ENV JAVA_OPTS="-Xms400m -Xmx400m -Xmn200m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=128m -Xverify:none -XX:+DisableExplicitGC -Djava.awt.headless=true"
ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /springboot-docker.jar" ]